package com.settlement.system.mapper;

import com.settlement.system.model.entity.common.CommonPlugIn;
import com.settlement.system.model.entity.common.TblCostWeightSummary;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 【RR-费用分配权数】菜单 的 【发退货汇总】页签 Mapper 接口
 * @author xiaochuan
 * @since 2022-12-28
 */
public interface TblCostWeightSummaryMapper extends BaseMapper {

    void saveSummaryCurrentMonth(@Param("params") Map<String,Object> params);

    void saveSummaryNearlyThreeMonth(@Param("params") Map<String,Object> params);

    void saveOrderNearlyThreeMonth(@Param("params") Map<String,Object> params);

    Integer deleteByParams(@Param("params") Map<String,Object> params);

    Integer selectCountUsed(@Param("params") Map<String,Object> params);

    /**
     * 获取合计
     *
     * @param params 请求参数
     * @return
     */
    TblCostWeightSummary getFoot(@Param("params") Map<String, Object> params);

    List<CommonPlugIn> selectExistAccountPeriod();

}

